//版心
@mixin container {
    width: 1200px;
    margin: 0 auto;
    // background-color: gold;
}

//文字样式
@mixin afonts {
    text-decoration: none;
    color: #000;
}

.active {
    border: 3px solid red;
}

/* 主体 */
#main {
    overflow: hidden;

    // 商品详情
    .goodsMesg {
        height: 600px;
        @include container();
        display: flex;
        justify-content: space-evenly;
        padding-top: 20px;
        box-sizing: border-box;
        background-color: white;

        // 放大镜
        .magnifier {
            display: flex;
            position: relative;

            // 左侧切换区
            .left {

                // 大图
                .show-box {
                    width: 400px;
                    height: 400px;
                    border: 1px solid #000;
                    position: relative;

                    img {
                        width: 100%;
                        height: 100%;
                    }

                    .mask {
                        position: absolute;
                        left: 0;
                        top: 0;
                        width: 200px;
                        height: 200px;
                        background-color: rgba(199, 223, 67, 0.5);
                        pointer-events: none;
                        display: none;
                    }
                }

                // 选项卡
                .tab {
                    width: 400px;
                    display: flex;
                    justify-content: space-between;
                    margin-top: 10px;

                    li {
                        width: 60px;
                        height: 60px;

                        img {
                            width: 100%;
                            height: 100%;
                        }
                    }
                }
            }

            // 放大镜区域
            .right {
                position: absolute;
                margin-left: 40px;
                width: 400px;
                height: 400px;
                overflow: hidden;
                border: 1px solid red;
                bottom: 240px;
                left: 400px;
                display: none;

                img {
                    position: absolute;
                    top: 0;
                    left: 0;
                }
            }
        }

        // 商品文字信息
        .textMesg {
            width: 400px;
            height: 400px;
            border: 1px solid #fee44e;
            font-size: 16px;
            display: flex;
            flex-direction: column;
            overflow: hidden;

            h3 {
                font-size: 15px;
                font-weight: bold;
                margin: 15px 20px;
                text-indent: 15px;
            }

            hr {
                width: 90%;
                margin: 0 auto;
            }

            .price {
                height: 87px;
                background-color: #f5f5f5;
                padding: 10px 20px;
                box-sizing: border-box;
                overflow: hidden;

                .originPrice,
                .nowPrice {
                    display: flex;
                }

                .originPrice {
                    color: #b1a9a5;
                    font-size: 14px;
                    text-decoration: line-through;
                    margin-bottom: 10px;
                }

                .nowPrice {
                    font-size: 18px;
                    color: #ff4653;
                    font-size: 16px;
                    font-weight: bold;

                    span {
                        font-size: 40px;
                    }
                }
            }

            .num {
                display: flex;
                flex-direction: column;
                padding: 30px 20px;
                box-sizing: border-box;
                overflow: hidden;

                p {
                    color: gray;
                    font-size: 14px;
                    align-self: flex-end;
                    margin-top: 10px;
                }

                .input {
                    span {
                        margin-right: 10px;
                    }

                    input[name='minus'],
                    input[name='plus'] {
                        width: 20px;
                        text-align: center;
                        background-color: #f1ebeb;
                    }

                    input[name='amount'] {
                        width: 50px;
                        text-align: center;
                    }
                }
            }

            .btn {
                display: flex;
                justify-content: center;

                button {
                    width: 125px;
                    height: 50px;
                    border: 0px solid #000;
                    background-color: rgb(254, 228, 78);
                    border-radius: 10px;
                    margin: 30px 20px;
                }
            }

        }

        // 卖家信息
        .shop {
            width: 300px;
            height: 400px;
            border: 1px solid #fee44e;
            display: flex;
            flex-direction: column;
            align-items: center;
            overflow: hidden;
            background: linear-gradient(180deg, #fee44e, #fff 25%, #fff);

            h3 {
                font-size: 15px;
                margin-top: 10px;

                span {
                    color: gray;
                }
            }

            img {
                width: 150px;
                height: 150px;
                margin-top: 70px;
            }

            p {
                font-size: 18px;
                margin-top: 10px;
            }

            .score {
                width: 150px;
                margin-top: 20px;
                display: flex;
                justify-content: space-between;

                ul {
                    display: flex;
                    flex-direction: column;
                    font-size: 14px;
                    align-items: center;

                    li {
                        color: #b1a9a5;
                        margin-bottom: 5px;
                    }

                    .s {
                        color: #fb9547;
                    }
                }
            }

        }
    }
}